/**
 * 获取项目根目录
 */
function getRootPath() {
    var localPath = location.href.split("/www/")[1];
    var paths = localPath.split("/");
    if(paths.length === 1) {
        return "./";
    } else {
        var root = '../';
        for(var i = 0; i < paths.length - 2; i++) {
            root += "../";
        }
        return root;
    }
}